package personal.xjl.studentdemo.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import personal.xjl.studentdemo.dao.CourseMapper;
import personal.xjl.studentdemo.entity.Course;
import personal.xjl.studentdemo.service.CourseService;

import java.util.List;

@Service
public class CourseServiceImpl implements CourseService {
    @Autowired
    CourseMapper courseMapper;
    @Override
    public List<Course> selectByPage(int i, int pageSize) {
        return courseMapper.getCourses(i,pageSize);
    }
}
